package ninja.awesome.game.main;
import ninja.awesome.framework.Graphics;
import ninja.awesome.framework.Image;
import ninja.awesome.game.MainGameScreen;
import ninja.awesome.game.gameobject.GameObj;

public class Background extends GameObj{

	private double speed = 10;
	private Image image;
	//private Image background;

	MainGameScreen game;
	Sprites s;

	public Background(int x, int y, MainGameScreen game, Sprites s){
		super(x,y);
		this.game = game;
		this.s = s;
		image = s.getBackgroundSprite();
	}

	public void update(){
		yLoc+= speed;
	}

	public void draw(Graphics g){
		g.drawImage(image,xLoc,yLoc);
}

	public int getX() {
		return xLoc;
	}

	public void setX(int xLoc) {
		this.xLoc = xLoc;
	}

	public int getY() {
		return yLoc;
	}

	public void setY(int yLoc) {
		this.yLoc = yLoc;
	}

}